package com.wxs.dao;

import com.wxs.pojo.Blog;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface BlogMapper {

    @Select("select * from blog")
    List<Blog> getBlogs();
    void addBlog(Blog blog);

    List<Blog> getBlogsByIf(Map map);

    int updateBlog(Map map);

    List<Blog> queryBlogChoose(Map map);

    List<Blog>queryBlogForeach(Map map);

}
